package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * xmweilove
 */
@Entity
@Table(name = "c_ques_ques_option", schema = "", catalog = "")
public class CQQOptionEntity {
    private Integer id;//主键 ques_ques_option_id

    // private Integer quesId;//问题id  ques_ques_id
    private CQuesQuesEntity questEntity;

    private String name;//选项名称 name
    private String optionIdentity;//选项标识 option_identity
    private Integer replyType;//1:选择 3:回答（问题类型为3\4\5时）  回答方式 reply_type
    private Float score;//选项分数  score
    private Integer deleted;//是否删除 deleted
    private Date createTime;//创建时间 create_time
    private String noanswer;//选中此选线后其他不填写题目


    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ques_ques_option_id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ques_ques_id")
    public CQuesQuesEntity getQuestEntity() {
        return questEntity;
    }

    public void setQuestEntity(CQuesQuesEntity questEntity) {
        this.questEntity = questEntity;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "option_identity")
    public String getOptionIdentity() {
        return optionIdentity;
    }

    public void setOptionIdentity(String optionIdentity) {
        this.optionIdentity = optionIdentity;
    }

    @Basic
    @Column(name = "reply_type")
    public Integer getReplyType() {
        return replyType;
    }

    public void setReplyType(Integer replyType) {
        this.replyType = replyType;
    }


    @Basic
    @Column(name = "deleted")
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "score")
    public Float getScore() {
        return score;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    @Basic
    @Column(name = "noanswer")
    public String getNoanswer() {
        return noanswer;
    }

    public void setNoanswer(String noanswer) {
        this.noanswer = noanswer;
    }
}
